package com.pharmacy.MedicineManage.service;

import com.pharmacy.MedicineManage.entity.Medicine;

import java.util.List;

public interface MedicineService {
    List<Medicine> getAllMedicines();
    Medicine getMedicineById(Integer id);
    Medicine getMedicineByCode(String code);
    List<Medicine> searchMedicinesByName(String name);
    List<Medicine> getMedicinesByCategory(String category);
    boolean addMedicine(Medicine medicine);
    boolean updateMedicine(Medicine medicine);
    boolean deleteMedicine(Integer id);
    boolean isCodeExist(String code);
}